package com.victualler.product.vender.dto.request;

import com.victualler.core.common.annotation.ListPageQuery;
import com.victualler.core.common.annotation.SimpleQueryFrom;
import com.victualler.core.common.annotation.SimpleQueryWhere;
import com.victualler.core.common.enums.ColumnFormatEnum;
import com.victualler.core.common.enums.LinkType;

import java.io.Serializable;

/**
 * @author Guoshichang
 * @since 12:36 on 2018/10/2.
 */
@SimpleQueryFrom(value = "vender_main VenderMainDao")
public class VenderRequestDto implements Serializable {

    @SimpleQueryWhere(specialName = "VenderMainDao.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "厂商名称")
    private String  name;

    @SimpleQueryWhere(specialName = "VenderMainDao.type")
    @ListPageQuery(title = "类型",type = ColumnFormatEnum.DICT,dictCodeType = "VenderType")
    private String type;

    @SimpleQueryWhere(specialName = "VenderMainDao.state")
    @ListPageQuery(title = "状态",type = ColumnFormatEnum.DICT,dictCodeType = "EntityState")
    private String state;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
